package com.student.common.entity;

import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * 课程实体类
 * 
 * @author student
 * @date 2025
 */
@Data
@Entity
@Table(name = "course")
public class Course {
    
    @Id
    @Column(name = "course_id", length = 10)
    private String courseId;
    
    @Column(name = "course_name", length = 50, nullable = false)
    private String courseName;
    
    @Column(name = "credits")
    private Integer credits;
    
    @Column(name = "hours")
    private Integer hours;
    
    @Column(name = "course_type", length = 20)
    private String courseType;
    
    @Column(name = "department", length = 50)
    private String department;
    
    @Column(name = "teacher_id", length = 10)
    private String teacherId;
    
    @Column(name = "description")
    private String description;
    
    @Column(name = "status", length = 10)
    private String status;
    
    @Column(name = "create_time")
    private LocalDateTime createTime;
    
    @Column(name = "update_time")
    private LocalDateTime updateTime;
}
